package controller 
{
	import flash.geom.Point;
	import model.Shapes.TetrisShape;
	import model.TetrisGame;
	/**
	 * ...
	 * @author Yang Wang
	 */
	public class GameController implements IGameController
	{
		private var m_game:TetrisGame;
		
		public function GameController(game:TetrisGame) 
		{
			m_game = game;
		}
		
		public function pause() : void {
			
		}
		
		public function rotateLeft() : void {
			m_game.board.rotateLeft();
			m_game.board.notifyViews();
		}
		
		public function rotateRight() : void {
			m_game.board.rotateRight();
			m_game.board.notifyViews();
		}
		
		public function softDrop() : void {
			m_game.board.softDrop();
		}
		
		public function hardDrop() : void {
			m_game.board.hardDrop();
			m_game.updateStatus();
		}
		
		public function moveLeft() : void {
			m_game.board.moveShapeLeft();
		}
		
		public function moveRight() : void {	
			m_game.board.moveShapeRight();
		}
		
		public function hold() : void {
			m_game.holdCurrentShape();
		}
	}

}